package com.ruoyi.openDoor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.openDoor.mapper.BusinessInfoMapper;
import com.ruoyi.openDoor.domain.BusinessInfo;
import com.ruoyi.openDoor.service.IBusinessInfoService;

/**
 * 商家的信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-06
 */
@Service
public class BusinessInfoServiceImpl implements IBusinessInfoService 
{
    @Autowired
    private BusinessInfoMapper businessInfoMapper;

    /**
     * 查询商家的信息
     * 
     * @param id 商家的信息主键
     * @return 商家的信息
     */
    @Override
    public BusinessInfo selectBusinessInfoById(Long id)
    {
        return businessInfoMapper.selectBusinessInfoById(id);
    }

    /**
     * 查询商家的信息列表
     * 
     * @param businessInfo 商家的信息
     * @return 商家的信息
     */
    @Override
    public List<BusinessInfo> selectBusinessInfoList(BusinessInfo businessInfo)
    {
        return businessInfoMapper.selectBusinessInfoList(businessInfo);
    }

    /**
     * 新增商家的信息
     * 
     * @param businessInfo 商家的信息
     * @return 结果
     */
    @Override
    public int insertBusinessInfo(BusinessInfo businessInfo)
    {
        return businessInfoMapper.insertBusinessInfo(businessInfo);
    }

    /**
     * 修改商家的信息
     * 
     * @param businessInfo 商家的信息
     * @return 结果
     */
    @Override
    public int updateBusinessInfo(BusinessInfo businessInfo)
    {
        return businessInfoMapper.updateBusinessInfo(businessInfo);
    }

    /**
     * 批量删除商家的信息
     * 
     * @param ids 需要删除的商家的信息主键
     * @return 结果
     */
    @Override
    public int deleteBusinessInfoByIds(Long[] ids)
    {
        return businessInfoMapper.deleteBusinessInfoByIds(ids);
    }

    /**
     * 删除商家的信息信息
     * 
     * @param id 商家的信息主键
     * @return 结果
     */
    @Override
    public int deleteBusinessInfoById(Long id)
    {
        return businessInfoMapper.deleteBusinessInfoById(id);
    }
}
